package com.example.imtoken.modules.main.wallet.manage.home

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.example.imtoken.R
import com.example.imtoken.databinding.ItemHomeWalletManageBinding
import com.example.imtoken.room.schema.WalletAddressSchema

class HomeWalletManageAdapter(layoutResId: Int) :
    BaseQuickAdapter<WalletAddressSchema, BaseDataBindingHolder<ItemHomeWalletManageBinding>>(
        layoutResId
    ) {

    init {
        addChildClickViewIds(R.id.ivDelete)
    }

    override fun convert(
        holder: BaseDataBindingHolder<ItemHomeWalletManageBinding>,
        item: WalletAddressSchema
    ) {
        holder.dataBinding?.item = item
    }

}